#! /bin/bash
while read user
do
	id $user &>/dev/null
	if [ $? -eq 0 ];then
		echo "$user用户已存在"
	else
		useradd $user
        	if [ $? -eq 0 ];then
                	echo "$user is create"
		fi
	fi
done < user.txt
